import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '@/views/Reg/Reg.vue'
import Login from '@/views/Login/Login.vue'

Vue.use(VueRouter)

const routes = [
  // path一般用小写,组件名通常用大写字母开头
  // 注册的路由
  { path: '/reg', name: 'reg', component: Reg },
  // 登录的路由
  { path: '/login', name: 'login', component: Login }
]

const router = new VueRouter({
  routes
})

export default router
